#ifndef OANIMATION_H
#define OANIMATION_H
#include <OType.h>
#include <OWidget.h>

class OAnimation{
	public:
		OAnimation(OWidget *);
		~OAnimation();

		void Start();
		void Stop();

		void SetAnimationAlpha(u8 start,u8 end,u16 time);
		void SetAnimationPosition(u16 startX,u16 startY,u16 endX,u16 endY,u16 time);

	private:
		pthread_t pid;

		static void *Run(void *);

	protected:
		OWidget *wid;
};

#endif
